import { createApp } from 'vue'
import router from './routers'
import App from './App.vue'

import ElementPlus from 'element-plus'

// element css
import 'element-plus/dist/index.css'

// element dark css
import 'element-plus/theme-chalk/dark/css-vars.css'

//当前文件ts类型的检测有红色提示(打包会失败)
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

// 引入自定义插件对象：注册成为整个项目全局组件
import global from '@/global'

// 引入模板的全局样式
import '@/styles/index.scss'

import Vue3Lottie from 'vue3-lottie'

// pinia store
import pinia from "@/stores";

const app = createApp(App)
app.use(pinia)
app.use(global)
app.use(router)
app.use(ElementPlus, { locale: zhCn })
app.use(Vue3Lottie)

//挂载app
app.mount('#app')
